package com.ctg.behavior.common.usergroups;

import java.util.ArrayList;
import java.util.List;

import com.ctg.behavior.common.calc.CtCalcSortInfo;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = false)
@Data
public class CtUGListData {
	
//	/*
//		{
//		"id": 19746,
//		"name": "user_group_fq43",
//		"cname": "分群43",
//		"userName": "186****8893",
//		"userId": 126522,
//		"createTime": "2021-07-12 05:54:53",
//		"dataType": "bool",
//		"unit": "day",
//		"sourceType": 1,
//		"isRoutine": false,
//		"status": "RUNNING",
//		"comment": "TEST-43",
//		"appPushList": [],
//		"ruleContentList": [  {}  ],
//		"failedPartitionCount": 0,
//		"lastSucceedPartition": { },
//		"lastPartitionInfo": {  },
//		"limit": 500,
//		"sortInfo": { }
//		}
//	 */

	private Long id;
	// 用户分群标识
	private String name;
	// 用户分群名称
	private String cname;
	// 登录用户名
	//private String username;
	private String creatorName;
	// 登录用户Id
	//private Long userId;
	private String creatorId;
	// 创建时间
	private String createTime;
	// 
	private String dataType = "bool";
	// 计算时间单位
	private String unit = "day";
	// 1: 规则创建,2:结果保存
	private Integer sourceType = 1;
	// 更新方式，true:例行，false:手动
	private Boolean isRoutine = false;
	// 运行状态
	private String status;
	// 运行状态
	private String comment;
	
	private List<CtUGRuleContent> ruleContentList = new ArrayList<>();
	private Integer failedPartitionCount = 0;
	private CtUGCalcPartitionData lastSucceedPartition = new CtUGCalcPartitionData();
	private CtUGCalcPartitionData lastPartitionInfo = new CtUGCalcPartitionData();
	private Integer limit = 500;
	private CtCalcSortInfo sortInfo = new CtCalcSortInfo();
}
